package com.hengpeng.itfinbase.persist;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.hengpeng.common.persist.entity.AbstractEntity;
import com.hengpeng.common.persist.entity.AuditedEntity;
import com.hengpeng.common.web.annotation.HtmlInput;
import com.hengpeng.common.web.annotation.HtmlInputType;
import com.hengpeng.itfinbase.CacheType;

/**
 * <pre>
 * 系统参数信息
 * </pre>
 * @author linriqing
 * @version 1.0, 2010-7-19
 */
@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = CacheType.SECOND_CACHE_DEFAULT)
public class SystemConfig extends AbstractEntity implements AuditedEntity
{
	private static final long serialVersionUID = -2397735988036657802L;

	@HtmlInput(label = "描述", type = HtmlInputType.TEXTAREA, index = 3, nullable = true)
	@Column(length = 255)
	private String description;

	@HtmlInput(label = "参数名称", type = HtmlInputType.ID, index = 1, nullable = false)
	@Id
	@Column(length = 50)
	private String id;

	@HtmlInput(label = "参数值", type = HtmlInputType.TEXT, index = 2, nullable = false)
	@Column(length = 400)
	private String value;

	public String getDescription()
	{
		return this.description;
	}

	public String getId()
	{
		return this.id;
	}

	public String getValue()
	{
		return value;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public void setId(String name)
	{
		this.id = name;
	}

	public void setValue(String value)
	{
		this.value = value;
	}

}